<?php 
foreach ($tpl_vars['navbar_elements'] as $eid => $elem) {
	echo '<span class="' . ($elem['active'] ? 'nav-act-elem' : 'nav-elem') . '">';
	if($elem['url']) echo '<a href="' . $elem['url'] . '">';
	echo $elem['name'];
	if($elem['url']) echo '</a>';
	echo '</span>';
	
	if (!$elem['last']) {
		echo '<span class="nav-delim">' . htmlspecialchars($tpl_vars['navbar_delimiter']) . '</span>';
	}
} 
?>